Skip to content

Conversation

@andidev
Copy link
Contributor

@andidev andidev commented Feb 9, 2026

🚧🚧🚧 WORK IN PROGRESS 🚧🚧🚧
Wait with reviewing this PR. Will still do changes.
Opening the PR to start a discussion of how to handle the change.
Current solution runs locally but still behavious differently from API gateway released version (noticed when using browser to access url directly it starts a file download as a stream while if accessing the released aws version it does load the content directly in browser as a stream). So still need some work to sync its behaviour.

Description

This adds support for "Amazon API Gateway Streaming REST apis"
Feature was released in AWS around Nov 19, 2025 and is helpful when developing serverless lambda AI APIs and apis that take longer than the API Gateway timeout limit of 29 seconds.

see https://aws.amazon.com/about-aws/whats-new/2025/11/api-gateway-response-streaming-rest-apis/

Motivation and Context

Modern API's especially serverless lamndas for AI need to stream responses and usually have to be able to run longer than 29 seconds with is the current API limit.

How Has This Been Tested?

Currently tested with my mac m4, node version v22.19.0, with latest osls version with the PR that adds support for streaming api in osls project. Here is the PR in the oss serverless project.

Screenshots (if appropriate):

N/A

Questions/Doubts

A bit confused with the serverless v4 support (master branch) and in case I need to provide an implementation for it to get this merged.
This is only adds support for 13.x branch which can be used with the https://github.com/oss-serverless/serverless project.
Is that ok or you want me to provide a serverless v4 version as well? Would like to avoid it since my time is limited but think maybe it can be relatively fast with some AI voodo magic (or maybe serverless v4 version its not that different?).
@crespowang @dherault what are your opinions?

@andidev andidev force-pushed the feature/transferModeStream branch from 86f42ef to 5e307d5 Compare February 9, 2026 15:02
@andidev
Copy link
Contributor Author

andidev commented Feb 9, 2026

with this change think maybe it will also be easy to support direct function urls as well. or at least change should be similar but exposing a different route.
#1382
and the duplicate
#1681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant